package si.unimb.server;

import java.util.ArrayList;
import java.util.List;

public class Game {
	
	private boolean inProgress;
	private List<StreamManager> players;
	
	public Game() {
		setInProgress(false);
		setPlayers(new ArrayList<StreamManager>());
	}
	
	public boolean addPlayer(StreamManager sm) {
		if (players.size() <= 5 && !isInProgress()) {
			players.add(sm);
			return true;
		} else {
			return false;
		}
	}

	public void setPlayers(List<StreamManager> players) {
		this.players = players;
	}

	public List<StreamManager> getPlayers() {
		return players;
	}

	public void setInProgress(boolean inProgress) {
		this.inProgress = inProgress;
	}

	public boolean isInProgress() {
		return inProgress;
	}
		
}
